package com.geologyoa.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.geologyoa.domain.Dwqk01;
import com.geologyoa.service.SystemManager;
import com.geologyoa.service.SystemManagerImpl;

public class AddDwqk01Servlet extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
       doPost(request,response);
	}
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		response.setContentType("text/xml;charset=utf-8");
		SystemManager sys=new SystemManagerImpl(); 
		Dwqk01 dwqk01=new Dwqk01();
		String DWQK0102=request.getParameter("DWQK0102");
		String DWQK0103=request.getParameter("DWQK0103");
		String DWQK0104=request.getParameter("DWQK0104");
		String DWQK0105=request.getParameter("DWQK0105");
		String DWQK0106=request.getParameter("DWQK0106");
		String DWQK0107=request.getParameter("DWQK0107");
		String DWQK0108=request.getParameter("DWQK0108");
		Double DWQK0109=Double.valueOf(request.getParameter("DWQK0109")).doubleValue(); 
		String DWQK0110=request.getParameter("DWQK0110");
		String DWQK0111=request.getParameter("DWQK0111");
		String DWQK0113=request.getParameter("DWQK0113");
		String DWQK0114=request.getParameter("DWQK0114");
		String DWQK0116=request.getParameter("DWQK0116");
		String DWQK0117=request.getParameter("DWQK0117");
		String DWQK0118=request.getParameter("DWQK0118");
		dwqk01.setDwqk0102(DWQK0102);
		dwqk01.setDwqk0103(DWQK0103);
		dwqk01.setDwqk0104(DWQK0104);
		dwqk01.setDwqk0105(DWQK0105);
		dwqk01.setDwqk0106(DWQK0106);
		dwqk01.setDwqk0107(DWQK0107);
		dwqk01.setDwqk0108(DWQK0108);
		dwqk01.setDwqk0109(DWQK0109);
		dwqk01.setDwqk0110(DWQK0110);
		dwqk01.setDwqk0111(DWQK0111);
		dwqk01.setDwqk0113(DWQK0113);
		dwqk01.setDwqk0114(DWQK0114);
		dwqk01.setDwqk0116(DWQK0116);
		dwqk01.setDwqk0117(DWQK0117);
		dwqk01.setDwqk0118(DWQK0118);
   		boolean flag=sys.AddDwqk(dwqk01);
		if(flag==true)
		{
			response.getWriter().write("true");
		}else{
			response.getWriter().write("false");
		}
	}

}
